package com.jandar.table.config;

import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;

/**
 * Tables类。
 * 
 * @author pqj
 * @version 2009-5-31
 */
public class Tables {

	/** 数据库表 */
	private List<Table> table = new ArrayList<Table>();

	public List<Table> getTable() {
		return table;
	}

	public void setTable(List<Table> table) {
		this.table = table;
	}

	public String toString() {
		Iterator<Table> iter = table.iterator();
		StringBuilder buf = new StringBuilder();
		buf.append("<tables>\n");
		while (iter.hasNext()) {
			buf.append(iter.next().toString()).append("\n");
		}
		buf.append("</tables>");
		return buf.toString();
	}
}
